package a_java_48_day.day3;
import java.util.*;
import java.lang.*;
public class Main1 {
    public static void main(String []args){
        HashMap<Integer,String> hashMap=new HashMap<>();
        StringBuilder sb =new StringBuilder ();
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        int count=0;
        int ans=0;
        for(int i=0;i<str.length();i++){
            if(str.charAt(i)>='0'&&str.charAt(i)<='9'){
                count++;
                sb.append(str.charAt(i));
                if(i<str.length()-1){//防止最后一次直接跳出没有进行下面步骤，例如123adf124345,结果就是123，走到5的时候直接跳出循环了
                    continue;
                }

            }
            hashMap.put(count,sb.toString());
            if(count>ans){
                ans=count;
            }
            sb=sb.delete(0,sb.length());
            count=0;
        }
        String ansStr=hashMap.get(ans);
        System.out.println(ansStr);
    }
}